<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // allSettled 无论解不解决都会提交
        let promise1=new Promise((resolve,reject)=>{
            reject("拒绝");
        });
        let promise2=new Promise((resolve,reject)=>{
            resolve("解决");
        });
        Promise.allSettled([promise1,promise2]).then(value=>console.log(value));
    </script>
</body>
</html>